<?php
require("../include/class.phpmailer.php");

$mail = new PHPMailer();

$mail->IsSMTP();                       // send via SMTP
$mail->Host     = "mail.uwannamail.com"; // SMTP servers
$mail->SMTPAuth = true;     // turn on SMTP authentication
$mail->Username = "admin@uwannamail.com";  // SMTP username
$mail->Password = "ByronStraat9"; // SMTP password

$mail->From     = "admin@uwannamail.com";
$mail->FromName = "admin";
$mail->AddAddress("richard@wolffoot.com","Richard Lau"); 
$mail->AddAddress("javajia@gmail.com");               // optional name
$mail->AddReplyTo("richard@wolffoot.com","Information");

$mail->WordWrap = 50;                              // set word wrap
//$mail->AddAttachment("/var/tmp/file.tar.gz");      // attachment
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); 
$mail->IsHTML(true);                               // send as HTML

$mail->Subject  =  "Here is the subject";
$mail->Body     =  "This is the <b>HTML body</b>";
$mail->AltBody  =  "This is the text-only body";

if(!$mail->Send())
{
   echo "Message was not sent <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}

echo "Message has been sent";
?>